/*工资核对记录-工资发放情况View*/
import 'package:flutter/cupertino.dart';
import 'package:frametrim/utility/screen.dart';
import 'package:frametrim/utility/sq_color.dart';

class SalaryRecordViuew extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.only(top: 20),
      child: Column(
        children: <Widget>[
          Row(
            children: <Widget>[
              Expanded(
                child: Text(
                  '工资条2次发放',
                  style: TextStyle(fontSize: 16, color: SQColor.color_222222),
                ),
              ),
              Text('2022.03.11  13:45:21',style: TextStyle(fontSize: 16,color: SQColor.color_222222),),
            ],
          ),
          SizedBox(height: 15,),
          Row(
            children: <Widget>[
              Image.asset('image/icon_records_01.png',width: 28,height: 28,),
              SizedBox(width: 8,),
              Text('龙子湖智慧岛',style: TextStyle(fontSize: 20,color: SQColor.black,fontWeight: FontWeight.bold),),
            ],
          ),
          Container(
            width: Screen.width,
            padding: EdgeInsets.all(12),
            margin: EdgeInsets.only(top: 5),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              mainAxisAlignment: MainAxisAlignment.start,
              children: <Widget>[
                Text('9622',style: TextStyle(fontSize: 36,color: SQColor.color_222222,fontWeight: FontWeight.bold),),
                Text('实际应发',style: TextStyle(fontSize: 16,color: SQColor.color_666666),),
              ],
            ),
          ),
          Container(
            padding: EdgeInsets.all(10),
            child: Column(
              children: <Widget>[
                buildRow('所属班组：','钢筋班组'),
                buildRow('所属工种：','普通人员'),
                buildRow('出勤天数：','31天'),
                buildRow('账户名：','阿花'),
                buildRow('银行：','华夏银行'),
                buildRow('银行账号：','787746564656362'),
              ],
            ),
          ),
          
          
        ],
      ),
    );
  }

  Widget buildRow(String title,String name){
    return  Container(
      padding: EdgeInsets.only(bottom: 10),
      child: Row(
        children: <Widget>[
          Expanded(child: Text(title,style: TextStyle(fontSize: 16,color: SQColor.color_666666),)),
          Text(name,style: TextStyle(fontSize: 16,color: SQColor.color_222222),)
        ],
      ),
    );
  }
}
